using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobinspectionstepTList, table list:dev_jobinspectionstep_t 
	/// </summary>
	internal class DevJobinspectionstepTList : BaseWritableEntities<DevJobinspectionstepT>, IDevJobinspectionstepTList
	{
		private DevJobinspectionstepTQueryDAO _queryDAO;
		private DevJobinspectionstepTWritingDAO _writeDAO;

		public DevJobinspectionstepTList(DevJobinspectionstepTQueryDAO queryDao, DevJobinspectionstepTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobinspectionstepT> GetDevJobinspectionstepTAllItems()
		{
			return _queryDAO.GetDevJobinspectionstepTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobinspectionstepT> GetDevJobinspectionstepTItemsById(int id)
		{
			return _queryDAO.GetDevJobinspectionstepTItemsById(id);
		}

		/// <summary>
		/// 根据jobId，获取所有DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobinspectionstepT> GetDevJobinspectionstepTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevJobinspectionstepTItemsByJobId(jobId);
		}

		/// <summary>
		/// 根据stepId，获取所有DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobinspectionstepT> GetDevJobinspectionstepTItemsByStepId(int stepId)
		{
			return _queryDAO.GetDevJobinspectionstepTItemsByStepId(stepId);
		}

		/// <summary>
		/// 增加一行DevJobinspectionstepT,table item:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobinspectionstepT(DevJobinspectionstepT item)
		{
			return this._writeDAO.AddDevJobinspectionstepT(item);
		}

		/// <summary>
		/// 增加多行DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobinspectionstepTs(DevJobinspectionstepT[] items)
		{
			return this._writeDAO.AddDevJobinspectionstepTs(items);
		}

		/// <summary>
		/// 更新一行DevJobinspectionstepT,table item:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobinspectionstepT(DevJobinspectionstepT item)
		{
			return this._writeDAO.UpdateDevJobinspectionstepT(item);
		}

		/// <summary>
		///  更新多行DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobinspectionstepTs(DevJobinspectionstepT[] items)
		{
			return this._writeDAO.UpdateDevJobinspectionstepTs(items);
		}

		/// <summary>
		/// 删除一行DevJobinspectionstepT,table item:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobinspectionstepT(DevJobinspectionstepT item)
		{
			return this._writeDAO.DeleteDevJobinspectionstepT(item);
		}

		/// <summary>
		///  删除多行DevJobinspectionstepT,table items:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobinspectionstepTs(DevJobinspectionstepT[] items)
		{
			return this._writeDAO.DeleteDevJobinspectionstepTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobinspectionstepT,table entity:dev_jobinspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobinspectionstepTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobinspectionstepTByIds(ids);
		}

	}
}
